import http from "@/utils/http";

export default {
    // 订单列表
    getOrderList: (data:any) =>
        http.get(
            "/Admin/getOrderList",
            {
                params:{...data}
            }
        ),
    // 获取订单来源列表
    getSourceList: (data:any) =>
        http.get(
            "/Admin/getsourceList",
            {
                params:{...data}
            }
        ),
    // 获取店铺所有销售额 利润 成交数
    getOrderData: (data:any) =>
        http.get(
            "/Admin/getMoney",
            {
                params:{...data}
            }
        ),
    // 添加订单
    addOrder: (data:any) =>
        http.post(
            "/Admin/addOrder",
            {...data}
        ),
    // 修改订单
    updaOrder: (data:any) =>
        http.post(
            "/Admin/updateOrder",
            {...data}
        ),
    // 删除订单
    deleteOrder: (data:any) =>
        http.post(
            "/Admin/deleteOrder",
            {...data}
        )
};
